package Day7;

public abstract class Aircraft {
    private int weight;
    private int height;



    public Aircraft(int weight, int height) {
        this.weight = weight;
        this.height = height;
    }

    public int getWeight() {
        return weight;
    }

    public void setWeight(int weight) {
        this.weight = weight;
    }

    public int getHeight() {
        return height;
    }

    public void setHeight(int height) {
        this.height = height;
    }
    public void print(){
        System.out.println("这个飞机的自重："+weight);
        System.out.println("这个飞机的飞行高度："+height);
    }
    public abstract void fly();

    public abstract void speed();

    public abstract void land();
}

